package com.settlement.system.common.model;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class QyWechatData implements Serializable {
    private String msgtype = "markdown";
    private MessageData markdown = new MessageData();

    private File file = new File();


    public QyWechatData(String content){
        this.markdown.setContent(content);
    }
    @Data
    static class MessageData implements Serializable {
        private String content;
    }

    public QyWechatData(String msgtype, String media_id){
        this.msgtype = msgtype;
        this.file.setMedia_id(media_id);
    }

    @Data
    static class File implements Serializable {
        private String media_id;
    }
}


